package vista;

import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VPerito extends javax.swing.JFrame {
	private JPanel panInfPerito;
	private JLabel lblInfPerito;
	private JComboBox cmbCondiciónPerito;
	private JButton btnBuscarPerito;
	private JButton btnGuardarPerito;
	private JButton btnModificarPerito;
	private JButton btnEliminarPerito;
	private JButton btnCancelarPerito;
	private JButton btnSalirPerito;
	private JLabel lblCondiciónPerito;
	private JTextArea txtareaRifPerito;
	private JLabel lblRifPerito;
	private JTextField txtTlfPerito;
	private JComboBox cmbTlfPerito;
	private JLabel lblTlfPerito;
	private JTextArea txtareNombrePerito;
	private JLabel lblNombrePerito;
	private JTextField txtCIPerito;
	private JComboBox cmbCIPerito;
	private JLabel lblCIPerito;
	private JTextField txtCodPerito;
	private JLabel lblCodPerito;
	private JSeparator sptTituloInfPerito;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VPerito inst = new VPerito();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VPerito() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				panInfPerito = new JPanel();
				getContentPane().add(panInfPerito, "Center");
				panInfPerito.setLayout(null);
				panInfPerito.setBounds(0, 0, 769, 576);
				panInfPerito.setBackground(new java.awt.Color(17,139,235));
				{
					lblInfPerito = new JLabel();
					panInfPerito.add(lblInfPerito);
					lblInfPerito.setText("Información Perito");
					lblInfPerito.setFont(new java.awt.Font("Andika Basic",1,18));
					lblInfPerito.setBounds(270, 12, 262, 29);
				}
				{
					sptTituloInfPerito = new JSeparator();
					panInfPerito.add(sptTituloInfPerito);
					sptTituloInfPerito.setBounds(121, 47, 564, 36);
				}
				{
					lblCodPerito = new JLabel();
					panInfPerito.add(lblCodPerito);
					lblCodPerito.setText("Código Perito:");
					lblCodPerito.setBounds(56, 112, 130, 28);
				}
				{
					txtCodPerito = new JTextField();
					panInfPerito.add(txtCodPerito);
					txtCodPerito.setBounds(198, 111, 111, 32);
				}
				{
					lblCIPerito = new JLabel();
					panInfPerito.add(lblCIPerito);
					lblCIPerito.setText("CI Perito:");
					lblCIPerito.setBounds(56, 184, 87, 24);
				}
				{
					ComboBoxModel cmbCICorredorModel = 
							new DefaultComboBoxModel(
									new String[] { "V", "E" });
					cmbCIPerito = new JComboBox();
					panInfPerito.add(cmbCIPerito);
					cmbCIPerito.setModel(cmbCICorredorModel);
					cmbCIPerito.setBounds(198, 183, 60, 26);
					//cmbCIPerito.addActionListener();
				}
				{
					txtCIPerito = new JTextField();
					panInfPerito.add(txtCIPerito);
					txtCIPerito.setBounds(309, 179, 138, 30);
				}
				{
					lblNombrePerito = new JLabel();
					panInfPerito.add(lblNombrePerito);
					lblNombrePerito.setText("Nombre Perito:");
					lblNombrePerito.setBounds(50, 307, 125, 23);
				}
				{
					txtareNombrePerito = new JTextArea();
					panInfPerito.add(txtareNombrePerito);
					txtareNombrePerito.setBounds(199, 301, 145, 29);
				}
				{
					lblTlfPerito = new JLabel();
					panInfPerito.add(lblTlfPerito);
					lblTlfPerito.setText("Tlf. Perito:");
					lblTlfPerito.setBounds(50, 360, 125, 24);
				}
				{
					txtTlfPerito = new JTextField();
					panInfPerito.add(txtTlfPerito);
					txtTlfPerito.setBounds(321, 361, 102, 25);
				}
				{
					ComboBoxModel cmbTlfPeritoModel = 
							new DefaultComboBoxModel(
									new String[] { "0416","0426", "0414", "0424", "0412" });
					cmbTlfPerito = new JComboBox();
					panInfPerito.add(cmbTlfPerito);
					cmbTlfPerito.setModel(cmbTlfPeritoModel);
					cmbTlfPerito.setBounds(199, 361, 74, 22);
				}
				{
					lblRifPerito = new JLabel();
					panInfPerito.add(lblRifPerito);
					lblRifPerito.setText("Rif Perito:");
					lblRifPerito.setBounds(56, 249, 96, 26);
				}
				{
					txtareaRifPerito = new JTextArea();
					panInfPerito.add(txtareaRifPerito);
					txtareaRifPerito.setBounds(196, 249, 130, 32);
				}
				{
					lblCondiciónPerito = new JLabel();
					panInfPerito.add(lblCondiciónPerito);
					lblCondiciónPerito.setText("Condición Perito");
					lblCondiciónPerito.setBounds(50, 431, 120, 25);
				}
				{
					ComboBoxModel cmbCondiciónPeritoModel = 
							new DefaultComboBoxModel(
									new String[] { "Áctivo", "Ináctivo" });
					cmbCondiciónPerito = new JComboBox();
					panInfPerito.add(cmbCondiciónPerito);
					cmbCondiciónPerito.setModel(cmbCondiciónPeritoModel);
					cmbCondiciónPerito.setBounds(199, 432, 138, 29);
				}
				{
					btnSalirPerito = new JButton();
					panInfPerito.add(btnSalirPerito);
					btnSalirPerito.setText("Salir");
					btnSalirPerito.setBackground(new java.awt.Color(173,216,230));
					btnSalirPerito.setBounds(619, 518, 102, 40);
					//btnSalirPerito.addActionListener(accion);
				}
				{
					btnCancelarPerito = new JButton();
					panInfPerito.add(btnCancelarPerito);
					btnCancelarPerito.setText("Cancelar");
					btnCancelarPerito.setBackground(new java.awt.Color(173,216,230));
					btnCancelarPerito.setBounds(471, 518, 108, 40);
					//btnCancelarPerito.addActionListener(accion);
				}
				{
					btnEliminarPerito = new JButton();
					panInfPerito.add(btnEliminarPerito);
					btnEliminarPerito.setText("Eliminar");
					btnEliminarPerito.setBackground(new java.awt.Color(173,216,230));
					btnEliminarPerito.setBounds(322, 518, 101, 40);
					//btnEliminarPerito.addActionListener(accion);
				}
				{
					btnModificarPerito = new JButton();
					panInfPerito.add(btnModificarPerito);
					btnModificarPerito.setText("Modificar");
					btnModificarPerito.setBackground(new java.awt.Color(173,216,230));
					btnModificarPerito.setBounds(186, 517, 98, 40);
					//btnModificarPerito.addActionListener(accion);
				}
				{
					btnGuardarPerito = new JButton();
					panInfPerito.add(btnGuardarPerito);
					btnGuardarPerito.setText("Guardar");
					btnGuardarPerito.setBackground(new java.awt.Color(173,216,230));
					btnGuardarPerito.setBounds(50, 518, 102, 40);
					//btnGuardarPerito.addActionListener(accion);
				}
				{
					btnBuscarPerito = new JButton();
					panInfPerito.add(btnBuscarPerito);
					btnBuscarPerito.setText("Buscar");
					btnBuscarPerito.setBounds(410, 110, 101, 33);
					btnBuscarPerito.setBackground(new java.awt.Color(165,42,42));
				}
			}
			pack();
			this.setSize(779, 604);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

	public void addListener(ActionListener accion) {
		this.btnSalirPerito.addActionListener(accion);
		
	}

}
